package com.myself.module.authority.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 系统-角色-信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "s_role_info")
public class RoleInfo {
    private static final long serialVersionUID = 1L;
    /**
     * 角色Id
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    private String roleName;

    /**
     * 启用
     */
    @TableField(value = "`enable`")
    private Boolean enable;
}